#{extends 'CRUD/layout.html' /}

<div id="crudBlank" class="${type.name}">
	
	<h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@create(), enctype:'multipart/form-data'}
		#{crud.form fields:['username', 'pwd', 'email', 'studentID']}
		#{crud.custom 'pwd'}
				<label for="object_pwd">pwd</label> 
				<input id="object_pwd" class="" type="hidden" name="object.pwd" value="" /> 
				<input id="object_pwdRaw" class="" type="password" name="" value="" size="50"  onkeyup="md5($('#object_pwdRaw').val(), '#object_pwd');" /> 
			    <span class="crudHelp"></span> 
			#{/crud.custom}
		#{/crud.form}
		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
			<input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
			<input type="submit" name="_saveAndAddAnother" value="&{'crud.saveAndAddAnother', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>